package com.ideaaedi.log4j2.defender.constant;

import java.time.format.DateTimeFormatter;

/**
 * 基础String常量
 *
 * @author JustryDeng
 * @since 2021/7/20 23:05:33
 */
public abstract class DefenderConstant {

    public static final String NULL = "null";

    public static final String OBJECT_PREFIX_SIGN = "{";

    public static final String JSON_STRING_SIGN = "\"{";

    public static final String ARRAY_PREFIX_SIGN = "[";

    public static final String ENUM_SPLIT_SIGN = "__";

    public static final String DOT_SIGN = ".";

    public static final String BACKSLASH_QUOTATION_SIGN = "\\\"";

    public static final String QUOTATION_SIGN = "\"";
    
    /** 至小时的时间格式 */
    public static final DateTimeFormatter TO_HOUR_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH");
    
    /** 至秒的时间格式 */
    public static final DateTimeFormatter TO_SECOND_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
}
